<template>
	<view class="body">
		<!-- 弹出框 -->
		<view class="paper-left-popup" v-show="show">
			<view class="flex-ac" style="font-weight: 600;">
				<view class="icon iconfont icon-sousuo" style="margin-right: 15rpx;"></view>
				加糗友
			</view>
			<view class="flex-ac" style="font-weight: 600;">
				<view class="icon iconfont icon-qingchu" style="margin-right: 15rpx;"></view>
				清除未读
			</view>
		</view>
		<block v-for="(item,index) in list" :key="index">
			<paper-list :item="item" ></paper-list>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				list: [{
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}, {
					nikName: "修女",
					time: "17：20",
					detail: "端午节安康！！！",
					newsNum: 23,
					src: "../../static/demo/demo6.jpg"
				}]
			}
		},
		//对原生的导航栏中的按钮的单击事件进行监听
		onNavigationBarButtonTap(e) {
			console.log(e);
			if (e.index == 1) {
				this.show = !this.show;
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.body {
		padding: 20rpx;
	}

	.paper-left-popup {
		position: fixed;
		right: 0rpx;
		top: 90rpx;
		background-color: #FFFFFF;
		z-index: 200;
		width: 55%;
		box-shadow: 1rpx 1rpx 20rpx 2rpx #CCCCCC;
	}

	.paper-left-popup>view {
		margin-right: 10rpx;
		padding: 20rpx;
		font-size: 35rpx;
	}
</style>
